import request from '@/utils/request'

// 查询园林养护任务周计划列表
export function listMaintainWeekPlan(query) {
  return request({
    url: '/comp/maintainWeekPlan/list',
    method: 'get',
    params: query
  })
}

// 周计划列表
export function listQueryWeekList(query) {
  return request({
    url: '/comp/maintainWeekPlan/queryWeekList',
    method: 'get',
    params: query
  })
}


// 查询园林养护任务周计划详细
export function getMaintainWeekPlan(id) {
  return request({
    url: '/comp/maintainWeekPlan/' + id,
    method: 'get'
  })
}
// 新增附件
export function addAttachFileAlter(data) {
	console.log(data.get('files'))
    return request({
        url: '/am/amAttach/uploadAndSaveTheFiles',
        method: 'post',
        data: data,
    })
}
// 删除附件
export function deleteAttach(data) {
    return request({
        url: '/am/amAttach/deleteByBo',
        method: 'delete',
        data: data
    })
}

